<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>好看的双栏博客</title>
    <link href="#(tmplPath)/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="#(tmplPath)/css/cl-css.css" rel="stylesheet">
    <link href="#(tmplPath)/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="#(tmplPath)/highlight/styles/railscasts.css">
</head>
<body>
<div class="cl-header container-fluid">
    <div class="header-content container">
        #include("_menu.html")
    </div>
</div>

<div class="cl-cantainer container">
    <div class="row">
        <div class="col-md-9 cl-left">
            #for(article : page.getList())
            <div class="cl-card">
                <div class="row">
                    #if(article.pic??)
                      <div class="col-lg-3 col-md-4 col-sm-12 cl-card-image"><a href="/article/#(article.slug)"><img src="#(article.pic)" class="img-fluid" alt="#(article.title)"></a></div>
                    #end
                    <div class="col-lg-9 col-md-8 col-sm-12 cl-card-main">
                        <h3 class="cl-card-main-title"><a href="#(article.url)">#(article.title)</a></h3>
                        <p class="cl-card-main-info">#(article.description)</p>
                        <p class="cl-card-more"><a href="#(article.url)">阅读更多...</a></p>
                    </div>
                </div>
            </div>
           #end
            <nav aria-label="Page navigation example">
                #include("_paginate.html")
                #@FrontPaginate(page,"/article/category/"+category.slug+"?pn=")
            </nav>

        </div>
        <div class="col-md-3 cl-right">
            <div class="right-card">

                <div class="right-card-main">
                    <div class="right-card-title">个人微信号</div>
                    <div class="cl-code">
                        <img src="#(tmplPath)/temporary-img/code.jpg" class="img-fluid" alt="">
                        <p>关注作者获取更多模板信息，定时发布干货文章</p>
                    </div>

                </div>
            </div>

            <div class="right-card">

                <div class="right-card-main">
                    <div class="right-card-title">热门文章</div>
                    <div class="right-recommended"><a href="#"><img src="#(tmplPath)/temporary-img/list-right.jpg" class="img-fluid" alt=""></a></div>
                    #set(hots = listHot(8))
                    <ul class="right-recommended-list">
                        #for(article : hots)
                        <li><a href="#(article.url)"><i class="fa fa-angle-right" aria-hidden="true"></i>#(article.title)</a></li>
                        #end
                    </ul>
                </div>
            </div>

            <div class="right-card">

                <div class="right-card-main">
                    <div class="right-card-title">热门标签</div>
                    #hotTags(type="tag",counts=6)
                    <ul class="label">
                        #for(tag:tags)
                        <li><a href="#(tag.url)">#(tag.name)</a></li>
                        #end
                    </ul>
                    #end
                </div>
            </div>

        </div>
    </div>

</div>

#include("_footer.html")
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>